package com.aplink.generic.constant.type;

public enum DateTimePickerType {
    DATEPICKER("DatePicker"),
    DATETIMEPICKER("DateTimePicker"),
    TIMEPICKER("TimePicker");
    public static DateTimePickerType get(final String key) {
        for (final DateTimePickerType dateTimePickerType : DateTimePickerType
                .values()) {
            if (dateTimePickerType.getValue().equalsIgnoreCase(key)) {
                return dateTimePickerType;
            }
        }
        return DateTimePickerType.DATETIMEPICKER;
    }

    private String mValue;

    private DateTimePickerType(final String value) {
        setValue(value);
    }

    public String getValue() {
        return mValue;
    }

    public void setValue(final String value) {
        this.mValue = value;
    }
}
